package com.uls.zsw.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 电源管理对象 zsw_electricity_manage
 * 
 * @author zsw
 * @date 2024-11-20
 */
public class ElectricityManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 电源编号 */
    private Long electricityId;

    /** 宿舍编号 */
    @Excel(name = "宿舍编号")
    private Long dormitoryId;

    /** 电源状态 */
    @Excel(name = "电源状态")
    private String electricityStatus;

    /** 状态更改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "状态更改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastchangeTime;

    /** 状态更改原因 */
    @Excel(name = "状态更改原因")
    private String changeReason;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Integer deleteFlag;

    private String selecteddn;

    public String getSelecteddn() {
        return selecteddn;
    }

    public void setSelecteddn(String selecteddn) {
        this.selecteddn = selecteddn;
    }

    public void setElectricityId(Long electricityId)
    {
        this.electricityId = electricityId;
    }

    public Long getElectricityId()
    {
        return electricityId;
    }
    public void setDormitoryId(Long dormitoryId)
    {
        this.dormitoryId = dormitoryId;
    }

    public Long getDormitoryId()
    {
        return dormitoryId;
    }
    public void setElectricityStatus(String electricityStatus) 
    {
        this.electricityStatus = electricityStatus;
    }

    public String getElectricityStatus() 
    {
        return electricityStatus;
    }
    public void setLastchangeTime(Date lastchangeTime) 
    {
        this.lastchangeTime = lastchangeTime;
    }

    public Date getLastchangeTime() 
    {
        return lastchangeTime;
    }
    public void setChangeReason(String changeReason) 
    {
        this.changeReason = changeReason;
    }

    public String getChangeReason() 
    {
        return changeReason;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdtaeTime() 
    {
        return updateTime;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDeleteFlag(Integer deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() 
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("electricityId", getElectricityId())
            .append("dormitoryId", getDormitoryId())
            .append("electricityStatus", getElectricityStatus())
            .append("lastchangeTime", getLastchangeTime())
            .append("changeReason", getChangeReason())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("deleteFlag", getDeleteFlag())
            .append("selecteddn",getSelecteddn())
            .toString();
    }
}
